//  ********** Library dart:core **************
//  ********** Natives dart:core **************
// ********** Code for Object **************
// ********** Code for BadNumberFormatException **************
function BadNumberFormatException() {}
// ********** Code for top level **************
//  ********** Library dart:coreimpl **************
// ********** Code for NumImplementation **************
NumImplementation = Number;
// ********** Code for StringImplementation **************
StringImplementation = String;
StringImplementation.prototype.contains = function(pattern, startIndex) {
  return this.indexOf(pattern, startIndex) >= 0;
}
// ********** Code for top level **************
//  ********** Library Chart **************
//  ********** Natives Chart.js **************
var type;
var chartTitle;

Chart = function(str){
	type = str;
	google.load('visualization', '1');   // Don't need to specify chart libraries!
	      google.setOnLoadCallback(draw);
};


draw = function(){
	var wrapper = new google.visualization.ChartWrapper({
				chartType: 'PieChart',
				dataTable: [['Mushrooms', 3],
			    ['Onions', 1],
			    ['Olives', 1], 
			    ['Zucchini', 1],
			    ['Pepperoni', 2]],
				options: {'title': 'How to draw a Pie Chart',
				                 'width':400,
				                 'height':300},
				containerId: 'chart_div'
			});

	        wrapper.draw();
}
// ********** Code for Chart **************
// ********** Code for top level **************
//  ********** Library chartSample **************
// ********** Code for chartSample **************
function chartSample() {
  // Initializers done
}
chartSample.prototype.run = function() {
  new Chart().draw();
}
// ********** Code for top level **************
function main() {
  new chartSample().run();
}
main();
